let btns = document.querySelectorAll("button")
let colors = ["#337ab7", "#5cb85c", "#5bc0de", "#f0ad4e", "#d9534f"]
let dec = document.querySelector("#dec-number")
let bin = document.querySelector("#bin-bit")
let transbtn = document.querySelector("#trans-btn")
let binresult = document.querySelector("#bin-result")
let result = document.querySelector("#result")
let radioa = document.querySelector("#radio-a")
let radiob = document.querySelector("#radio-b")
let numa = document.querySelector("#num-a")
let numb = document.querySelector("#num-b")
let stra = document.querySelector("#str-a") 
let strb = document.querySelector("#str-b") 

let queueipt = document.querySelectorAll(".queue-input")
let queuecont = document.querySelectorAll(".queue-cont")
let inbtn = document.querySelectorAll(".in-btn")
let outbtn = document.querySelectorAll(".out-btn")
let fontbtn = document.querySelectorAll(".font-btn")
let emptybtn = document.querySelectorAll(".empty-btn")

let stackipt = document.querySelectorAll(".stack-input")
let stackcont = document.querySelectorAll(".stack-cont")
let pushbtn = document.querySelectorAll(".push-btn")
let popbtn = document.querySelectorAll(".pop-btn")
let stackfontbtn = document.querySelectorAll(".stack-font-btn")
let stackemptybtn = document.querySelectorAll(".stack-empty-btn")

btns.forEach((ele, i) => {
    i % 5 == 0 ? ele.style.backgroundColor = colors[0] : ""
    i % 5 == 1 ? ele.style.backgroundColor = colors[1] : ""
    i % 5 == 2 ? ele.style.backgroundColor = colors[2] : ""
    i % 5 == 3 ? ele.style.backgroundColor = colors[3] : ""
    i % 5 == 4 ? ele.style.backgroundColor = colors[4] : ""
})